#include "iostream"
#include<cmath>

using namespace std;

class POINT
{
private:
  double x, y;

public:
  void set(double, double);
  double distance(POINT x);
  void show()
  {
    cout << "(" << x << "," << y << ")";
  }
};

void POINT::set(double a, double b)
{
  x = a;
  y = b;
}

double POINT::distance(POINT b)
{
  double dis;
  dis = pow((b.x - x), 2) + pow((b.y - y), 2);
  dis = pow(dis, 0.5);
  return dis;
}

int main()
{
  POINT a, b;
  double x, y;
  cin >> x >> y;
  a.set(x, y);
  cin >> x >> y;
  b.set(x, y);


  

  a.show();
  cout << endl;
  b.show();
  cout << endl;
  cout << a.distance(b) << endl;
  return 0;
}